<html>
<head>
    <meta charset="UTF-8">
    <script type="text/javascript">
        function setInnerHTML(){
            document.getElementById("test").innerHTML = "<strong>设置标签的html内容</strong>";
        }
    </script>
</head><body>
<p id="test"><font color="#000">嗨豆壳 www.hi-docs.com</font></p>
<input type="button" onclick="setInnerHTML()" value="点击" />
</body>
</html>